package edu.zcmu.seckill.service;

import edu.zcmu.seckill.entity.SeckillProduct;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 唐诗
 * @since 2022-02-22
 */
public interface SeckillProductService extends IService<SeckillProduct> {

    void uploadSeckillProductCache();


    HashMap<String,Object> getNow(Integer pageNum);

    HashMap<String, Object> getBefore(Integer pageNum);

    HashMap<String, Object> getAfter(Integer pageNum);

    HashMap<String,Object> getSeckillProductById(Integer id);

    void updateProductBySale(String id, int i);
}
